<?php

namespace App\Trip\Enums;

enum OrderBusiness
{
    case ORDER; //下单
    case CHANGE;//改签,改期 变更
    case REFUND;//退票, 退款
    case SNAP;  //抢票
    case PAY;   //支付

    public function business_flag(): string
    {
        return match ($this) {
            self::ORDER  => 'O',
            self::CHANGE => 'C',
            self::REFUND => 'R',
            self::SNAP   => 'S',
            self::PAY    => 'P',
        };
    }
}
